import request from '@/utils/request'

// 查询生产工序列表
export function listBizProductionProcess (query) {
  return request({
    url: '/biz/bizProductionProcess/list',
    method: 'get',
    params: query
  })
}

export function listAllBizProductionProcess (query) {
  return request({
    url: '/biz/bizProductionProcess/allList',
    method: 'get',
    params: query
  })
}

// 查询生产工序详细
export function getBizProductionProcess (id) {
  return request({
    url: '/biz/bizProductionProcess/' + id,
    method: 'get'
  })
}

// 新增生产工序
export function addBizProductionProcess (data) {
  return request({
    url: '/biz/bizProductionProcess',
    method: 'post',
    data: data
  })
}

// 修改生产工序
export function updateBizProductionProcess (data) {
  return request({
    url: '/biz/bizProductionProcess',
    method: 'put',
    data: data
  })
}

// 删除生产工序
export function delBizProductionProcess (id) {
  return request({
    url: '/biz/bizProductionProcess/' + id,
    method: 'delete'
  })
}


// 导出生产工序
export function exportBizProductionProcess (query) {
  return request({
    url: '/biz/bizProductionProcess/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizProductionProcess/getInitData/' + dictTypes,
    method: 'get'
  })
}
